package vo;
import daoImpls.CategoryDAOImpl;

public class Category extends PetObject {
    private String catID;
    private String catName;

    public Category() {
    }

    public Category(Category category) {
        this.setCatID(category.getCatID());
        this.setCatName(category.getCatName());
    }

    public Category(String catID) {
        this.setCatID(catID);
        this.setCatName(new CategoryDAOImpl().get(catID).getCatName());
    }

    public String getCatID() {
        return catID;
    }

    public void setCatID(String catID) {
        this.catID = catID;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    @Override
    public String toString() {
        return "category{" +
                "catID='" + catID + '\'' +
                ", catName='" + catName + '\'' +
                '}';
    }
}
